﻿@model TimePeriodSum
<form class="form-horizontal uiform" method="post"
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("Save")">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">@Html.EditStatus("")</h4>
    </div>
    <div class="modal-body">
        @Html.AntiForgeryToken()
        @Html.MarkCreate()
        @Html.HiddenFor(p => p.id)
        @Html.HiddenFor(p => p.CreateUserId)
        @Html.HiddenFor(p => p.CreateUserName)
        @Html.HiddenFor(p => p.CreateDateTime)
        <div class="alert alert-danger fxhide"></div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                检查点ID：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointId)" value="@Model.pointId"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入检查点ID'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                检查点名称：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointName)" value="@Model.pointName"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入检查点名称'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                客运站：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.Station)" value="@Model.Station"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入客运站'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                日期：
            </label>
            <div class="col-md-8">
                    <input class="form-control uidate" name="@nameof(Model.DateTimes)" value="@Model.DateTimes" 
                       data-validate="required: true,maxlength: 8"
                       data-validate-message="required:'请输入日期'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                30分钟到稽查点：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointName30)" value="@Model.pointName30"
                       data-validate="required: true,maxlength: 4"
                       data-validate-message="required:'请输入30分钟到稽查点'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                30-60分钟内到稽查点：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointName60)" value="@Model.pointName60"
                       data-validate="required: true,maxlength: 4"
                       data-validate-message="required:'请输入30-60分钟内到稽查点'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                60-90分钟到稽查点：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointName90)" value="@Model.pointName90"
                       data-validate="required: true,maxlength: 4"
                       data-validate-message="required:'请输入60-90分钟到稽查点'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                90-120分钟以上到稽查点：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointName120)" value="@Model.pointName120"
                       data-validate="required: true,maxlength: 4"
                       data-validate-message="required:'请输入90-120分钟以上到稽查点'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">
                
                120分钟以上：
            </label>
            <div class="col-md-8">
                <input class="form-control" name="@nameof(Model.pointNamemore120)" value="@Model.pointNamemore120"
                       data-validate="required: true,maxlength: 4"
                       data-validate-message="required:'请输入120分钟以上'"
                       type="text" autocomplete="off" />
            </div>
        </div>
        @*<div class="form-group">
            <label class="control-label col-md-3">
                备注：
            </label>
            <div class="col-md-8">
                <textarea class="form-control" name="@nameof(Model.Note)" rows="3">@Model.Note</textarea>
            </div>
        </div>*@
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 保存
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>